<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />

    <title> </title>
    <link rel="icon" href="/cmb.ico" />
    <link rel="stylesheet" href="/umi.css" />
    <script>
      window.routerBase = "/";
    </script>
    <script>
      //! umi version: 3.5.43
    </script>
  </head>
  <body>
    <div id="root"></div>

    <script>
      function IEVersion() {
        // if (document.documentMode) return document.documentMode;
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var isIE =
          userAgent.indexOf("compatible") > -1 &&
          userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
        var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
        var isIE11 =
          userAgent.indexOf("Trident") > -1 &&
          userAgent.indexOf("rv:11.0") > -1;
        if (isIE) {
          var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
          reIE.test(userAgent);
          var fIEVersion = parseFloat(RegExp["$1"]);
          if (fIEVersion == 7) {
            return 7;
          } else if (fIEVersion == 8) {
            return 8;
          } else if (fIEVersion == 9) {
            return 9;
          } else if (fIEVersion == 10) {
            return 10;
          } else {
            return 6; //IE版本<=7
          }
        } else if (isEdge) {
          return "edge"; //edge
        } else if (isIE11) {
          return 11; //IE11
        } else {
          return -1; //不是ie浏览器
        }
      }

      function fallbackCopyTextToClipboard() {
        // 1.创建一个可选中元素
        var textArea = document.createElement("textarea");
        textArea.value = window.location.href;
        // 2.使用定位，阻止页面滚动
        textArea.style.top = "0";
        textArea.style.left = "0";
        textArea.style.position = "fixed";
        document.body.appendChild(textArea);
        textArea.focus();
        textArea.select();
        try {
          // textArea.style.visibility = "hidden";
          textArea.style.opacity = "0";
          var successful = document.execCommand("copy");
          // var msg = successful ? 'successful' : 'unsuccessful';
          alert("Copy Link Success!");
        } catch (err) {
          console.log(err);
        }
        // 3.移除元素
        document.body.removeChild(textArea);
      }

      function copyTextToClipboard(text) {
        if (!navigator.clipboard) {
          fallbackCopyTextToClipboard();
          return;
        }
        navigator.clipboard.writeText(text).then(
          function () {
            alert("Copy Link Success!");
          },
          function (err) {}
        );
      }

      var ie = IEVersion();
      if (ie === 9 || ie === 8 || ie === 7 || ie === 6) {
        var sb =
          '<div id="portal-base-js-modal" class="portal-base-js-modal-class" style="position: fixed;left: 0;top: 0;z-index: 1000;display: black;width: 100%;height: 100%;background-color: rgba(0, 0, 0, 0.5);padding: 32px 32px 24px;">' +
          '<div class="modal-content" style="width: 708px;;height: 291px;border:0.3px solid;margin: 100px auto;border-radius: 20px;background-color: #fff;border-color:#dedede;box-shadow:3px 5px 6px rgba(0, 0, 0, 0.16);">' +
          '<div  style="float:left;padding-top: 55px;">' +
          '<div class="modal-body" style="padding: 30px 5px 10px 43px;;font-size: 16px;color: #000000;line-height: 24px;box-sizing: border-box;font-weight:600;varter-spacing:1px;font-family: PingFangSC, Microsoft Yahei,FZLTHJW;">' +
          "<span>" +
          "Current broswer does not support,<br/> we recommend using browsers such as chrome or 360(Extreme Mode) to visit this website" +
          "</span>" +
          "</div>" +
          '<div class="modal-footer" style="box-sizing: border-box;display: flex;padding: 6px 46px 40px;align-items: center;">  <button id="cancel" style="width:120px;height:30px;background-color:#a30030;border-radius:18px;color:#ffffff;font-size:18px;border: none;line-height: 27px;varter-spacing:1px;font-family: PingFangSC, Microsoft Yahei,FZLTHJW;cursor:pointer;display: flex;justify-content: center;"><span>Copy Link</span></button> ' +
          "</div>" +
          "</div>" +
          '<div class="modal-whilte-box" style="margin-right: 20px;width:253px;height:253px;float:right;" id="modal-whilte-box"></div>' +
          "</div></div>";

        var tmp = document.createElement("div");
        var signFrame = (tmp.innerHTML += sb);
        document.body.appendChild(tmp);
        // document.body.style.
        var modelbox = document.getElementById("modal-whilte-box");
        modelbox.style.background = "url('ie.png') center";
        modelbox.style.backgroundSize = "100%";
        modelbox.style.filter =
          "progid: DXImageTransform.Microsoft.AlphaImageLoader(src='ie.png', sizingMethod='scale')";
        var modal = document.getElementById("portal-base-js-modal");
        var cancel = document.getElementById("cancel");
        if (cancel.addEventListener) {
          cancel.addEventListener("click", function () {
            // modal.style.display = "none";
            var winHref = window.location.href;
            copyTextToClipboard(winHref);
          });
        } else {
          cancel.attachEvent("onclick", function () {
            // modal.style.display = "none";
            var winHref = window.location.href;
            copyTextToClipboard(winHref);
          });
        }
      }
    </script>

    <script src="/umi.js"></script>
  </body>
</html>
